package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 * 【请填写功能名称】对象 materials
 * 
 * @author ruoyi
 * @date 2023-05-26
 */
public class Materials extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 物品编号 */
    private String materialsId;

    /** 物品名称 */
    @Excel(name = "物品名称")
    private String materialsName;

    /** 物品类别 */
    @Excel(name = "物品类别")
    private String materialsCategory;

    /** 物品单位 */
    @Excel(name = "物品单位")
    private String materialsUnit;

    /** 物品单价 */
    @Excel(name = "物品单价")
    private BigDecimal materialsPrice;

    /** 物品状态，字典为materials_state */
    @Excel(name = "物品状态，字典为materials_state")
    private String materialsState;

    /** 物品描述 */
    @Excel(name = "物品描述")
    private String materialsDescribe;

    /** 物品图片，url地址 */
    @Excel(name = "物品图片，url地址")
    private String materialsPicture;

    /** 批号，是唯一的，一种产品只有一个 */
    @Excel(name = "批号，是唯一的，一种产品只有一个")
    private String materialsBatchNumber;

    /** 批次，这个是生成日期+当前的第几批 */
    @Excel(name = "批次，这个是生成日期+当前的第几批")
    private String materialsBatch;

    @Excel(name = "物品数量")
    private Long materialsCount;

    @Excel(name = "库位id")
    private String storageLocationId;

    @Excel(name = "物品入库目标仓库id")
    private String warehouseId;

    public void setMaterialsId(String materialsId) 
    {
        this.materialsId = materialsId;
    }

    public String getMaterialsId() 
    {
        return materialsId;
    }
    public void setMaterialsName(String materialsName) 
    {
        this.materialsName = materialsName;
    }

    public String getMaterialsName() 
    {
        return materialsName;
    }
    public void setMaterialsCategory(String materialsCategory) 
    {
        this.materialsCategory = materialsCategory;
    }

    public String getMaterialsCategory() 
    {
        return materialsCategory;
    }
    public void setMaterialsUnit(String materialsUnit) 
    {
        this.materialsUnit = materialsUnit;
    }

    public String getMaterialsUnit() 
    {
        return materialsUnit;
    }
    public void setMaterialsPrice(BigDecimal materialsPrice) 
    {
        this.materialsPrice = materialsPrice;
    }

    public BigDecimal getMaterialsPrice() 
    {
        return materialsPrice;
    }
    public void setMaterialsState(String materialsState) 
    {
        this.materialsState = materialsState;
    }

    public String getMaterialsState() 
    {
        return materialsState;
    }
    public void setMaterialsDescribe(String materialsDescribe) 
    {
        this.materialsDescribe = materialsDescribe;
    }

    public String getMaterialsDescribe() 
    {
        return materialsDescribe;
    }
    public void setMaterialsPicture(String materialsPicture) 
    {
        this.materialsPicture = materialsPicture;
    }

    public String getMaterialsPicture() 
    {
        return materialsPicture;
    }

    public String getMaterialsBatchNumber() {
        return materialsBatchNumber;
    }

    public void setMaterialsBatchNumber(String materialsBatchNumber) {
        this.materialsBatchNumber = materialsBatchNumber;
    }

    public String getMaterialsBatch() {
        return materialsBatch;
    }

    public void setMaterialsBatch(String materialsBatch) {
        this.materialsBatch = materialsBatch;
    }

    public Long getMaterialsCount() {
        return materialsCount;
    }

    public void setMaterialsCount(Long materialsCount) {
        this.materialsCount = materialsCount;
    }

    public String getStorageLocationId() {
        return storageLocationId;
    }

    public void setStorageLocationId(String storageLocationId) {
        this.storageLocationId = storageLocationId;
    }

    public String getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(String warehouseId) {
        this.warehouseId = warehouseId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("materialsId", getMaterialsId())
            .append("materialsName", getMaterialsName())
            .append("materialsCategory", getMaterialsCategory())
            .append("materialsUnit", getMaterialsUnit())
            .append("materialsPrice", getMaterialsPrice())
            .append("materialsState", getMaterialsState())
            .append("materialsDescribe", getMaterialsDescribe())
            .append("materialsPicture", getMaterialsPicture())
            .toString();
    }
}
